package com.spring.gop.proj.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.spring.gop.proj.interfaces.UserInfoDao;
import com.spring.gop.proj.interfaces.UserInfoService;
import com.spring.gop.proj.model.MyPoint;
import com.spring.gop.proj.model.Qna;
import com.spring.gop.proj.model.User;

@Service
public class UserInfoServiceImpl implements UserInfoService{
	
	@Autowired UserInfoDao userinfoDao;
	
	@Transactional
	public void delUser(String member_id){
		userinfoDao.delUser(member_id);
	}
	
	@Transactional
	public void updateUser(String member_email, String member_phone,String member_id){
		userinfoDao.updateUser(member_email, member_phone, member_id);
	}
	@
	Transactional
	public void updatePwd(String member_pw,String member_id){
		userinfoDao.updatePwd(member_pw, member_id);
	}
	
	public List<MyPoint> selectIdMyPoint(String member_id, String point_title) {
		return userinfoDao.selectIdMyPoint(member_id, point_title);
	}
	
	public Qna selectQnaForId(Map<String, Object> map) {
		return userinfoDao.selectQnaForId(map);
	}
}
